import request from '@/utils/request.js'
import api from '@/api/index.js'

export const reqFileUpload = (file) => {
    const formData = new FormData()
    formData.append("file", file)
    return request({
        url: api.fileUploadURL,
        method: "POST",
        data: formData,
        headers: {
            "Content-Type": "multipart/form-data"
        }
    })
}
export const fileRemoveService = (url) => {
    return request({
        url: `${baseUrl}/fileRemove`,
        method: 'DELETE',
        data: url
    })
}
